﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 静态动态内存回收
{
    public class 动态运行
    {
        public 动态实例 ins = new 动态实例();

        public void Add()
        {
            for (int i = 0; i < 100 * 10000; i++)
            {
                ins.List.Add(Guid.NewGuid().ToString());
            }

            Console.WriteLine("增加100万个");
        }

        public void Remove()
        {
            ins.List.Clear();
            Console.WriteLine("清空100万个");

        }
    }
}
